Kinetis SDK Demo Applications User Guide  1.0.0-beta
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
user_cfg.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 - 2014, Freescale Semiconductor, Inc.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without modification,
6  * are permitted provided that the following conditions are met:
7  *
8  * o Redistributions of source code must retain the above copyright notice, this list
9  * of conditions and the following disclaimer.
10  *
11  * o Redistributions in binary form must reproduce the above copyright notice, this
12  * list of conditions and the following disclaimer in the documentation and/or
13  * other materials provided with the distribution.
14  *
15  * o Neither the name of Freescale Semiconductor, Inc. nor the names of its
16  * contributors may be used to endorse or promote products derived from this
17  * software without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
23  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
26  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29  */
30 
31 #ifndef _USER_CFG_H_
32 #define _USER_CFG_H_
33 
34 /* size of array to copy__Launch_Command function to.*/
35 /* It should be at least equal to actual size of __Launch_Command func */
36 /* User can change this value based on RAM size availability and actual size of __Launch_Command function */
37 #define LAUNCH_CMD_SIZE 0x100
38 
39 /* Size of function used for callback. Change this depending on the size of your function */
40 #define CALLBACK_SIZE 0x80
41 
42 /***********************************************************************************************************
43 * Derivative selection. Use this to select correct header file
44 * Depending upon the macro selected, There will be a change in some internal macros and source codes.
45 * The derivative name will be defined based on the following rule:
46 *
47 * FTFx_AA_BB_CC_DD_EE_FF
48 *
49 * In which:
50 * FTFx: abbreviation for C90TFS/FTFx flash family.
51 * AA: MCU type.
52 * BB: P-Flash block size.
53 * CC: FlexNVM block size.
54 * DD: FlexRam or Acceleration Ram size.
55 * EE: P-Flash sector size.
56 * FF: D-Flash sector size.
57 ****************************************************************************************************************/
58 #if (defined(CPU_MK64FN1M0VMD12))
59 /* 1024K P-Flash, 0K FlexNVM, 4K FlexRam, 4K P-Flash sector size, 0K D-Flash sector size */
60 #define FLASH_DERIVATIVE FTFx_KX_1024K_0K_4K_4K_0K
61 #elif (defined(CPU_MK22FN512VDC12))
62 /* 512K P-Flash, 0K FlexNVM, 0K FlexRam, 2K P-Flash sector size, 0K D-Flash sector size */
63 #define FLASH_DERIVATIVE FTFx_KX_512K_0K_0K_2K_0K
64 #endif
65 
66 #endif /* End of _USER_CFG_H_ */
67 
68 
69 
70 
71